package com.xnf.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnf.model.admin.dtos.NewsAuthDto;
import com.xnf.model.wemeida.pojos.WmNews;
import com.xnf.model.wemeida.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by xnf on 2022/3/2.
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {

    List<WmNewsVo> findListAndPage(@Param("dto") NewsAuthDto dto);

    int findListCount(@Param("dto") NewsAuthDto dto);
}
